package org.zry.chat2ai.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class MyController {

    @GetMapping("/index")
    public String index() {
        return "index"; // 对应src/main/resources/templates/index.html
    }

    @GetMapping("/login")
    public String login() {
        return "login"; // 对应src/main/resources/templates/index.html
    }

    @GetMapping("/")
    public String home() {
        return "login"; // 对应src/main/resources/templates/index.html
    }
}